﻿mainModule.factory('cultureCacheSvc', ["$cacheFactory", "$http", function ($cacheFactory, $http) {
    "use strict";
    var cache = $cacheFactory('cultureCache');
    function getAll() { return cache.get("all"); };

    return {
        init: function (list) {            
            cache.put("all", list);            
        },
        getAll: getAll        
    }
}]);